<template>
  <el-table
          :data="resList"
          :border="true"
          style="width: 100%">
    <el-table-column
            prop="id"
            label="日期"
            width="180">
    </el-table-column>
    <el-table-column
            prop="name"
            label="姓名"
            width="180">
    </el-table-column>
    <el-table-column
            prop="courseId"
            label="地址">
    </el-table-column>
  </el-table>
</template>

<script>
  export default {
      name: "chapter",
      mounted: function(){
          let _this = this;
          _this.list()
      },
      data: function(){
          return {
              resList: []
          }
      },
      methods: {
          list(){
              let _this = this;
              _this.$ajax.get("http://127.0.0.1:9000/business/chapter").then((response)=>{
                  _this.resList = response.data
                  console.log(_this.resList)
              })
          }
      }
  }
</script>